
let userPage = {
  pageNumber: 1,
  pageSize: 20,
  totalRow: 1,
  list: [{
      'id': 1,
      'name': 'admin',
      'sex': 1,
      'login_name': 'admin',
      'email': 'admin@admin.com',
      'register_date': '2017-04-01 12:00:00',
      'last_login_date': '2017-04-21 12:00:30',
    },
  ],
};

module.exports = {
  'GET /api/user': (req, res) => {
    setTimeout(function () {
      res.json({
        status_code: 0,
        data: userPage
      });
    }, 500);
  },

  'GET /api/logout': (req, res) => {
    setTimeout(function () {
      res.json({
        status_code: 0,
        message: 'success.logout'
      });
    }, 500);
  },
  'POST /api/login': (req, res) => {
    setTimeout(function () {
      res.json({
        status_code: 0,
        data: 'tokenstring'
      });
    }, 500);
  },

}
